<?php
namespace app\erp_meixingtiyu\model;

use think\Model;

class CourseLessonClockIn extends Model
{
    protected $table = 'athlon_course_lesson_clock_in';
    protected $pk = 'clock_in_id';

    public function getRecordsByUserId($lesson_ids, $userId)
    {
      return self::where('user_id', $userId)->where('lesson_id', 'in', $lesson_ids)->select();
    }
}